Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

256
Views
what does this syntax means p.then(onFulfilled[, onRejected])

in the MDN documentation i have seen it many times for example

p.then(onFulfilled[, onRejected]);

this method takes two functions callbacks that I understand but why in the syntax example provided by MDN there is brackets like its an array and to add to my confusion there is a comma in the beginning or maybe this doesn't mean an array at all and means something else i know it might be something really small or trivial but i cant find relative information regarding this thank you so much for helping

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!